<template>
  <a-modal
    :visible="visible"
    title="查看"
    :width="600"
    @cancel="() => { $emit('cancel') }"
  >
    <detail-list :col="1">
      <detail-list-item term="学号">{{info.xh}}</detail-list-item>
      <detail-list-item term="姓名">{{info.xm}}</detail-list-item>
      <detail-list-item term="指导教师所在院系">{{info.zdlsssyxmc}}</detail-list-item>
      <detail-list-item term="指导教师姓名">{{info.zdlsxm}}</detail-list-item>
      <detail-list-item term="授予学位的大学">{{info.syxwddx}}</detail-list-item>
      <detail-list-item term="论文题目">{{info.lwtm}}</detail-list-item>
      <detail-list-item term="专业领域">{{info.zyly}}</detail-list-item>
      <detail-list-item term="英文摘要">{{info.ywzy}}</detail-list-item>
      <detail-list-item term="中文摘要">{{info.zwzy}}</detail-list-item>
      <detail-list-item term="审核状态">{{info.shztmc}}</detail-list-item>
      <detail-list-item term="导师审核意见">{{info.dsshyj}}</detail-list-item>
      <detail-list-item term="院系审核意见">{{info.yxshyj}}</detail-list-item>
    </detail-list>
    <template slot="footer">
        <a-button @click="() => { $emit('cancel') }">
          关闭
        </a-button>
    </template>
  </a-modal>

</template>

<script>
import { STable } from '~'
import { mapState } from 'vuex'
import DetailList from '~/tool/DetailList'
const DetailListItem = DetailList.Item

export default {
  props: ['visible', 'id'],
  components: {DetailList, DetailListItem, STable},
  data () {
    return {
      form: this.$form.createForm(this),
      info:{}
    }
  },
  created () {
  },
  methods: {
    confirm () {
      this.form.validateFields((err, values) => {
        if (err) return
        this.$api.overseas.lwxxDssh({...values, id: this.id}).then(res => {
          this.$message.success(res.msg)
          this.form.resetFields()
          this.$emit('cancel')
          this.$emit('refresh')
        })
      })
    }
  }
}
</script>

<style>

</style>
